<?php

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class SystemModuleInfo
 * *
 * @property $id  自增ID
 * @property $module  模块
 * @property $key  key
 * @property $value  value
 * @property $created_at  
 * @property $updated_at  
 * @property $deleted_at  
 *
 * @package  App\Models
 * @mixin \Illuminate\Database\Eloquent\Builder
 */
class SystemModuleInfo extends Model 
{
    use SoftDeletes;

    protected $table = 'system_module_infos';

    protected $fillable = ['id', 'module', 'key', 'value'];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}